import http from "../utils/request";

export function getEventList() {
  return http.get("event/list");
}
export function eventSort(params) {
  return http.post("event/sort",params);
}

export function getCardList(params) {
  return http.get("index", params);
}

export function addCard(params) {
  return http.post("card/add", params);
}

export function getCommonEventList() {
  return http.get("event/common");
}

export function deleteCard(params) {
  return http.post(`card/del?id=${params.id}`);
}

export function updateCard(params) {
  return http.post(`card/update`, params);
}

export function getCalculate(params) {
  return http.get(`calculate/root`, params);
}

export function getTimeSlot(params) {
  return http.get(`common/timeSlot`, params);
}

export function getCalculateOverview(params) {
  return http.get(`calculate/overview`, params);
}

export function getCalculateChildren(params) {
  return http.get(`calculate/children`, params);
}

export function getStatistics(params) {
  return http.get(`analysis/category`, params);
}

export function getStatisticsEvents(params) {
  return http.post(`analysis/event`, params);
}
export function classifyAdd(params) {
  return http.post(`event/add`, params);
}
export function classifyDel(params) {
  return http.post(`event/del`, params);
}
export function classifEdit(params) {
  return http.post(`event/update`, params);
}
export function versionUpgrade(params) {
  return http.get(`versionUpgrade/detail`, params);
}
export function getCircleData(params) {
  return http.get(`analysis/mood`, params);
}